package com.dsj.gxrd.modules.controller.people;

import com.dsj.gxrd.modules.people.service.RdDeptService;
import com.ruoyi.common.core.web.controller.BaseController;
import com.ruoyi.common.core.web.page.TableDataInfo;
import com.ruoyi.system.api.domain.SysDept;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author songpin566
 * @date 2023/11/17
 **/
@Api(tags = "机构部门管理")
@RestController
@RequestMapping("/dept/org")
public class RdDeptController extends BaseController {

    @Autowired
    RdDeptService rdDeptService;

    @GetMapping("/list")
    public TableDataInfo list(SysDept dept) {
        startPage();
        List<SysDept> list = rdDeptService.list(dept);
        return getDataTable(list);
    }

 }
